package com.ayf.payment.game.api.service;

import com.ayf.payment.game.api.entity.MerchantRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface MerchantRolePermissionService {

    /**
     * 修改用户角色权限
     *
     * @param merchantRole
     * @return
     */
    @Transactional
    boolean updateRolePermission(MerchantRole merchantRole);

    /**
     * 查询角色权限
     *
     * @param roleId
     * @return
     */
    List<Integer> list(Integer roleId);
}
